package com.cloudspace.jindun.network.url;

import com.cloudspace.jindun.config.Configs;

/**
 * User: Cloud(32325596@qq.com)
 * Date: 2016-12-27
 * Time: 15:47
 * project: jindunnew
 * Describe 接口类
 */
public class YXHttpUrl {
    public static final String SERVER_URI_DEBUG = "http://" + Configs.SERVER_IP_DEBUG + "/jindun/V1.0/";
    public static final String SERVER_URI_RELEASE = "http://" + Configs.SERVER_IP_RELEASE + "/jindun/V1.0/";

    public static String SERVER_URI = SERVER_URI_RELEASE;

    public static String LOGIN_URI = SERVER_URI + "register/auth";  //登录
    public static String LOGIN_WPASSWORD_URI = SERVER_URI + "register/appeal";//忘记密码
    public static String WD_GHTX_URI = SERVER_URI + "myself/modify/icon"; //我的头像修改
    public static String WD_GPHONENAME_URI = SERVER_URI + "myself/modify/phoneNum"; //更改手机号
    public static String WD_GPASSWORD = SERVER_URI + "myself/modify/auth"; //校对密码
    public static String WD_GPASSWORD_GG = SERVER_URI + "myself/modify/password"; //更改密码
    public static String WY_INTELLIGENCE_UP = SERVER_URI + "report/reportInfo"; //隐患/情报上报隐患有图片的
    public static String WY_INTELLIGENCE_UPNO = SERVER_URI + "report/reportInfoNoImage"; //隐患/情报上报隐患无图片的
    public static String WY_INTELLIGENCE_IN = SERVER_URI + "report/getReport/"; //隐患/情报获取
    public static String WD_GRZL = SERVER_URI + "phone/perInfo/"; //个人资料

    public static String XX_CJHT = SERVER_URI + "message/createGroups"; //创建话题群聊
    public static String XX_HQQZL = SERVER_URI + "message/loadGroupsDetail/"; //获取群聊资料
    public static String XX_JRQZ = SERVER_URI + "message/joinChannel"; //加入群聊
    public static String XX_TCQUNLIAO = SERVER_URI + "message/deleteChannel"; //退出群聊
    public static String XX_HQLB = SERVER_URI + "message/loadGroups/"; //获取群聊列表

    public static String XX_JRHT = SERVER_URI + "message/discussGroup/create"; //加入话题
    public static String XX_HQHT = SERVER_URI + "message/topic/line"; //获取话题列表
    public static String XX_TCHUATI = SERVER_URI + "message/topic/quit"; //退出话题
    public static String XX_HQHUATIZILIAO = SERVER_URI + "message/loadTopicDetail/"; //获取话题资料

    public static String XX_UPTIME = SERVER_URI + "message/topic/lasttime"; //上传时间
    public static String LOGIN_JPUSH = SERVER_URI + "upload/jgregisterid"; //上传极光ID

    public static void setHttpUri(boolean isDebug) {
        SERVER_URI = isDebug ? SERVER_URI_DEBUG : SERVER_URI_RELEASE;

        LOGIN_URI = SERVER_URI + "register/auth";  //登录
        LOGIN_WPASSWORD_URI = SERVER_URI + "register/appeal";//忘记密码
        WD_GHTX_URI = SERVER_URI + "myself/modify/icon"; //我的头像修改
        WD_GPHONENAME_URI = SERVER_URI + "myself/modify/phoneNum"; //更改手机号
        WD_GPASSWORD = SERVER_URI + "myself/modify/auth"; //校对密码
        WD_GPASSWORD_GG = SERVER_URI + "myself/modify/password"; //更改密码
        WY_INTELLIGENCE_UP = SERVER_URI + "report/reportInfo"; //隐患/情报上报隐患有图片的
        WY_INTELLIGENCE_UPNO = SERVER_URI + "report/reportInfoNoImage"; //隐患/情报上报隐患无图片的
        WY_INTELLIGENCE_IN = SERVER_URI + "report/getReport/"; //隐患/情报获取
        WD_GRZL = SERVER_URI + "phone/perInfo/"; //个人资料

        XX_CJHT = SERVER_URI + "message/createGroups"; //创建话题群聊
        XX_HQQZL = SERVER_URI + "message/loadGroupsDetail/"; //获取群聊资料
        XX_JRQZ = SERVER_URI + "message/joinChannel"; //加入群聊
        XX_TCQUNLIAO = SERVER_URI + "message/deleteChannel"; //退出群聊
        XX_HQLB = SERVER_URI + "message/loadGroups/"; //获取群聊列表

        XX_JRHT = SERVER_URI + "message/discussGroup/create"; //加入话题
        XX_HQHT = SERVER_URI + "message/topic/line"; //获取话题列表
        XX_TCHUATI = SERVER_URI + "message/topic/quit"; //退出话题
        XX_HQHUATIZILIAO = SERVER_URI + "message/loadTopicDetail/"; //获取话题资料

        XX_UPTIME = SERVER_URI + "message/topic/lasttime"; //上传时间
        LOGIN_JPUSH = SERVER_URI + "upload/jgregisterid"; //上传极光ID
    }
}
